package com.iot08.admin.service;

import com.iot08.common.entity.app.AdverstersComInfo;
import com.iot08.common.service.base.BaseService;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Update;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @version 1.0
 * @Description: 广告配置业务逻辑
 * @time: 2020/10/22 11:40
 * @author: Rock
 */
@Service
public class AdverstersComInfoService extends BaseService<AdverstersComInfo> {

    /**
     * @param id
     * @time: 2020/10/22 11:42
     * @author: Rock
     * @version 1.0
     */
    public AdverstersComInfo getById(String id) {
        return this.findById(id);
    }

    @Override
    public void updateById(Object id, Update update) {
        if(this.findById(id) != null){
            super.updateById(id, update);
        }else{

        }

    }
}
